# MySQL for Python

import MySQLdb

db = MySQLdb.connect (
    host = 'localhost',
    user = 'root',
    passwd = '',
    db = 'db_1clic2learn'
    #bd = 'mysql'
    )

cursor = db.cursor()
cursor.execute('SELECT * FROM db.PL_SQLINJECTION')
result = cursor.fetchall()

if result:
    for z in result:
        print z